
package framework.model;

public class MonthlyPredicate implements IPredicate<Entry> {
    private int month;
    //
    public MonthlyPredicate(int month) {
        this.month = month;
    }

    @Override
    public boolean check(Entry e) {
        return month == (e.getDate().getMonth() - 1);
    }
}